<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue</title>
    <script src="./vue.min.js"></script>
    <script src="./components/CellItem.js"></script>
</head>
<body>
    <div id="app">
        <div>CellItem 组件</div>
        <cell-item :params="reactObj"></cell-item>
        <cell-item :params="reactObj"></cell-item>
        <div>
            <div>reactObj.react1 = {{reactObj.react1}}</div>
            <div>reactObj.react2 = {{reactObj.react2}}</div>
        </div>
        <hr/>
        <div>CellItemMixins 组件</div>
        <cell-item-mixins></cell-item-mixins>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            components: {
                CellItemMixins: CellItemMixins(),
                CellItem: CellItem()
            },
            data () {
                return {
                    reactObj: {
                        react1: 11,
                        // react2: 12
                    }
                }
            },
            created () {
                this.reactObj.react2 = 12;
            },
            mounted () {
                setTimeout(() => {
                    this.reactObj.react2 = 13;
                }, 3000);
                setTimeout(() => {
                    this.reactObj.react1 = 14;
                }, 6000);
            }
        });
    </script>
</body>
</html>